package com.config.client.example.web;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.config.client.example.service.ConfigService;
@RestController("/")
public class IndexController {

	//通过value读取
	@Autowired
	private ConfigService configService;
	

	
	@RequestMapping("index")
	public String index(){
		return configService.getServername();
	}
	
}
